home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Blogowanie poza sfera
/
Flock 0.9.1.3 stable
/
flock-0.9.1.3.en-US.win32.exe
/
flock
/
res
/
detect
/
wordpress.xml
< prev
next >
Wrap
Extensible Markup Language
|
2007-10-12
|
3KB
|
106 lines
<?xml version="1.0" encoding="utf-8"?>
<service name="wordpress"
version="$Id: wordpress.xml 14069 2007-08-09 19:15:43Z chris $"
xmlns="http://www.flock.com/web-detective#">
<detect type="signup">
<url domain="wordpress.com" />
<form>
<field name="user_name" extractas="username" />
<field name="pass2" type="password" extractas="password" />
</form>
</detect>
<detect type="login">
<url domain="wordpress.com"/>
<form>
<field fieldid="user_login" extractas="username"/>
<field fieldid="user_pass" type="password" extractas="password"/>
</form>
</detect>
<detect type="loggedin">
<url domain="wordpress.com"/>
<xpath><![CDATA[//div[@id="wpcombar"]/div/ul/li/ul/li/strong/a/text()[contains(.,"Log Out")]]]></xpath>
</detect>
<detect type="loggedin">
<url domain="wordpress.com"/>
<xpath><![CDATA[//div[@id="wpcombar"]/div/ul/li/ul/li/a/text()[contains(.,"Log Out")]]]></xpath>
</detect>
<detect type="loggedin">
<url domain="wordpress.com">
<path contains="signup" />
</url>
<regexp><![CDATA[/Your account is now active!/]]></regexp>
</detect>
<detect type="blogURL">
<url domain="wordpress.com"/>
<xpath name="blogURL" extract="attribute:href">
<![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a]]>
</xpath>
</detect>
<detect type="accountinfo">
<conditions>
<url domain="wordpress.com"/>
<xpath name="accountid">
<![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a/text()]]>
</xpath>
</conditions>
<results>
<xpath name="accountid">
<![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a/text()]]>
</xpath>
<xpath name="avatarURL" extract="attribute:src">
<![CDATA[//div[@id="wrapper"]//div[@id="block_2"]//div[@id="welcomeback"]//div[@class="head"]/img]]>
</xpath>
</results>
</detect>
<detect type="accountinfo">
<conditions>
<url domain="wordpress.com"/>
<xpath name="accountid">
<![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/strong/a/text()]]>
</xpath>
</conditions>
<results>
<xpath name="accountid">
<![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/strong/a/text()]]>
</xpath>
<xpath name="avatarURL" extract="attribute:src">
<![CDATA[//div[@id="wrapper"]//div[@id="block_2"]//div[@id="welcomeback"]//div[@class="head"]/img]]>
</xpath>
</results>
</detect>
<detect type="accountinfo">
<url domain="wordpress.com">
<path contains="signup" />
</url>
<xpath name="accountid">
<![CDATA[//p[contains(text(),"You are now logged in as")]/strong/text()]]>
</xpath>
</detect>
<detect type="changepassword">
<url domain="wordpress.com">
<path contains="/wp-admin/profile.php"/>
</url>
<document>
<xpath name="username" extract="value">
<![CDATA[//input[@name="user_login"]]]>
</xpath>
</document>
<form>
<xpath name="password" extract="value">
<![CDATA[//input[@type="password"][@name="pass2"]]]>
</xpath>
</form>
</detect>
</service>